//package cn.minions.testSpring.controller;
//
//
//import com.jfinal.aop.Before;
//import com.jfinal.core.Controller;
//import com.jfinal.plugin.spring.Inject;
//import com.jfinal.plugin.spring.IocInterceptor;
//
//import cn.minions.testMybatis.SystemAdmin;
//import cn.minions.testSpring.Service.SpringTestService;
//
//@Before(IocInterceptor.class)
//public class testSpringController extends Controller{
//    
////    @Inject.BY_NAME
////    private Animal animal;
//    @Inject.BY_TYPE
//    private SpringTestService springTestService;
//    
////    public void hello(){
////        animal.move();
////        animal.jump();
////        renderJson("{\"hello\":\"hello\"}");
////    }
//    
//    public void index(){
//	    try {
//			SystemAdmin systemAdmin = new SystemAdmin();
//			systemAdmin.setLoginName("admin");
//			SystemAdmin systemAdmin2 = springTestService.getSystemAdmin(systemAdmin);
//			renderJson(systemAdmin2);
//		} catch (Exception e) {
//			e.printStackTrace();
//			renderJson("{\"hello\":\"hello\"}");
//		}
//	 }
//}
